package com.product.to;

import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotNull;
import lombok.Data;

@Data
@Schema(title = "修改订单项To")
public class UpdateOrderItemTo {
    @NotNull(message = "id不能为空")
    @Schema(title = "订单项id",requiredMode = Schema.RequiredMode.REQUIRED)
    private Long orderItemId;

    @Schema(title = "产品id",requiredMode = Schema.RequiredMode.NOT_REQUIRED)
    private Long productId;

    @Schema(title = "订单id",requiredMode = Schema.RequiredMode.NOT_REQUIRED)
    private Long orderId;

    @Schema(title = "订单状态",requiredMode = Schema.RequiredMode.NOT_REQUIRED)
    private String state;

    @Schema(title = "数量",requiredMode = Schema.RequiredMode.NOT_REQUIRED)
    private Long num;
}
